<template>
  <div class="home">
    <main><router-view></router-view></main>
    <footer>
      <router-link to="/home/homePage">
      <van-icon name="wap-home-o" />
      首页
      </router-link>
      <router-link to="/home/live">
      <van-icon name="tv-o" />
      直播
      </router-link>
      <router-link to="/home/cashShake">
      <van-icon name="balance-o" />
      摇现金
      </router-link>
      <router-link to="/home/chat">
      <van-icon name="comment-o" />
      聊天
      </router-link>
      <router-link to="/home/personal">
      <van-icon name="manager-o" />
      个人中心
      </router-link>
    </footer> 
  </div>
</template>

<script>
// @ is an alias to /src


export default {
  name: 'Home',
  components: {
    
  }
}
</script>
<style lang="scss">
  *{
    margin: 0;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
  }
  a{
    text-decoration: none;
  }
  html,body,#app,.home{
    width: 100%;
    height: 100%;
  }
  .home{
    display: flex;
    flex-direction: column;
    main{
      flex: 1;
      overflow-y:scroll ;
    }
    footer{
        width: 100%;
        height: 60px;
        display: flex;
        justify-content: space-around;
        align-items: center;
        border-top: 1px solid #ccc;
        a{
          flex: 1;
          display: flex;
          flex-direction: column;
          .van-icon{
            font-size: 30px;
          }
        }
    }
  }
</style>
